import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/roles/list',
    method: 'get',
    params
  })
}

export function save_permissions(params) {
  return request({
    url: '/roles/save_permissions',
    method: 'post',
    params
  })
}

export function get_roles() {
  return request({
    url: '/user/get_roles',
    method: 'get'
  })
}

export function get_users(params) {
  return request({
    url: '/roles/get_users',
    method: 'get',
    params
  })
}

export function remove_user(params) {
  return request({
    url: '/roles/remove_user',
    method: 'post',
    params
  })
}

export function del(params) {
  return request({
    url: '/roles/delete',
    method: 'post',
    params
  })
}
